import request from '@/utils/request'
import requestNew from '@/utils/requestNew'




//问卷里面-国内外服务标签列表
export function questionLabel(data) {
  return request({
    url: '/v1/visit/questionLabel',
    method: 'get',
    params: data
  })
}

//省市区
export function getAllProvince(data) {
  return request({
    url: '/v1/config/get_all_province',
    method: 'get',
    params: data
  })
}
// 企业信息
export function companyInfo(data) {
  return request({
    url: '/v1/visit/companyInfo',
    method: 'get',
    params: data
  })
}
// 高级检索字段
export function fields(data) {
  return request({
    url: '/v2/search/fields',
    method: 'get',
    params: data
  })
}
// 高级检索字段
export function getConfig(data) {
  return request({
    url: '/v1/visit/getConfig',
    method: 'get',
    params: data
  })
}

//一级权限列表
export function roleList(data) {
  return request({
    url: '/v1/user/roleList',
    method: 'get',
    params: data
  })
}


//公司开关-类型-是否可走访
export function companySwitch(data) {
  return request({
    url: '/v1/visit/companySwitch',
    method: 'post',
    data
  })
}
//用户信息
export function userInfo(data) {
  return request({
    url: '/v1/user/userInfo',
    method: 'post',
    data
  })
}
//用户删除/状态开关/全局权限开关
export function userDel(data) {
  return request({
    url: '/v1/user/userDel',
    method: 'post',
    data
  })
}
//账号创建
export function userCreate(data) {
  return request({
    url: '/v1/user/userCreate',
    method: 'post',
    data
  })
}
//账号列表
export function getuserList(data) {
  return request({
    url: '/v1/user/userList',
    method: 'post',
    data
  })
}
//重置密码
export function passWord(data) {
  return request({
    url: '/v1/news/user/password',
    method: 'post',
    data
  })
}
//上传阿里oss+https
export function upload(data) {
  return request({
    url: '/v1/config/upload',
    method: 'post',
    data
  })
}
//用户信息编辑
export function userEdit(data) {
  return request({
    url: '/v1/user/userEdit',
    method: 'post',
    data
  })
}
//重置密码
export function userResetting(data) {
  return request({
    url: '/v1/user/userResetting',
    method: 'post',
    data
  })
}
//超级管理员登陆子后台
export function loginAll(data) {
  return request({
    url: '/v1/user/loginAll',
    method: 'post',
    data
  })
}
//修改用户密码
export function userChangePassword(data) {
  return request({
    url: '/v1/user/userChangePassword',
    method: 'post',
    data
  })
} 

//部门列表
export function userDepartmentList(data) {
  return request({
    url: '/v1/user/departmentList',
    method: 'post',
    data
  })
} 

//部门添加
export function userDepartmentAdd(data) {
  return request({
    url: '/v1/user/departmentAdd',
    method: 'post',
    data
  })
} 

//部门修改
export function userDepartmentEdit(data) {
  return request({
    url: '/v1/user/departmentEdit',
    method: 'post',
    data
  })
} 

//部门删除
export function userDepartmentDel(data) {
  return request({
    url: '/v1/user/departmentDel',
    method: 'post',
    data
  })
} 


//走访日历
export function calendar(data) {
  return request({
    url: '/v1/visit/calendar',
    method: 'post',
    data
  })
} 
//需求记录列表
export function demandListNews(data) {
  return request({
    url: '/v1/visit/demandListNews',
    method: 'post',
    data
  })
} 
//banner列表
export function bannerList(data) {
  return request({
    url: '/v1/user/bannerList',
    method: 'post',
    data
  })
} 
//banner新增
export function bannerAdd(data) {
  return request({
    url: '/v1/user/bannerAdd',
    method: 'post',
    data
  })
} 
//banner编辑
export function bannerEdit(data) {
  return request({
    url: '/v1/user/bannerEdit',
    method: 'post',
    data
  })
} 
//banner删除
export function bannerDel(data) {
  return request({
    url: '/v1/user/bannerDel',
    method: 'post',
    data
  })
} 
//banner详情
export function bannerInfo(data) {
  return request({
    url: '/v1/user/bannerInfo',
    method: 'post',
    data
  })
} 

//区域列表
export function regionList(data) {
  return request({
    url: '/v1/user/regionList',
    method: 'get',
    params: data

  })
} 
//走访记录列表
export function visitList(data) {
  return request({
    url: '/v1/visit/visitListNews',
    method: 'post',
    data
  })
} 

//企业列表 
export function companyListNew(data) {
  return request({
    url: '/v1/company/companyList',
    method: 'get',
    params: data
  })
}


//首页排行榜
export function patRank(data) {
  return request({
    url: '/v1/visit/patRank',
    method: 'post',
    data
  })
} 
//需求标签列表
export function demandLabel(data) {
  return request({
    url: '/v1/visit/demandLabel',
    method: 'post',
    data
  })
} 

//区域街道
export function visitStreet(data) {
  return request({
    url: '/v1/visit/street',
    method: 'post',
    data
  })
} 
// 走访人员选择
export function staff(data) {
  return request({
    url: '/v1/visit/staff',
    method: 'post',
    data
  })
}
// 走访记录创建 
export function createVisit(data) {
  return request({
    url: '/v1/visit/createVisit',
    method: 'post',
    data
  })
}
// 企业模糊搜索
export function seachCompany(data) {
  return requestNew({
    url: '/v1/visit/seachCompany',
    method: 'post',
    data
  })
}
// 名片识别
export function getBusinessCardInfo(data) {
  return request({
    url: '/v1/visit/getBusinessCardInfo',
    method: 'post',
    data
  })
}
// 走访记录删除-对应需求也会删除
export function visitDel(data) {
  return request({
    url: '/v1/visit/visitDel',
    method: 'post',
    data
  })
}
// 公司动态信息
export function companyAllInfo(data) {
  return request({
    url: '/v1/visit/companyAllInfo',
    method: 'post',
    data
  })
}

// 单个需求删除
export function demandDel(data) {
  return request({
    url: '/v1/visit/demandDel',
    method: 'post',
    data
  })
}

// 公司标签列表
export function companyLabel(data) {
  return request({
    url: '/v1/visit/companyLabel',
    method: 'post',
    data
  })
}
// 公司基本信息编辑
export function companyEdit(data) {
  return request({
    url: '/v1/visit/companyEdit',
    method: 'post',
    data
  })
}

// 公司奖项-优势企业-资质列表
export function honorTag(data) {
  return request({
    url: '/v1/visit/honorTag',
    method: 'post',
    data
  })
}

// 荣誉类型-公司列表
export function honorList(data) {
  return request({
    url: '/v1/visit/honorList',
    method: 'post',
    data
  })
}

// 资质、优势企业编辑
export function qualifications(data) {
  return request({
    url: '/v1/visit/qualifications',
    method: 'post',
    data
  })
}

// 奖项新增
export function honorAdd(data) {
  return request({
    url: '/v1/visit/honorAdd',
    method: 'post',
    data
  })
}
// 奖项删除
export function honorDel(data) {
  return request({
    url: '/v1/visit/honorDel',
    method: 'post',
    data
  })
}
// 奖项编辑
export function honorEdit(data) {
  return request({
    url: '/v1/visit/honorEdit',
    method: 'post',
    data
  })
}


// 奖项编辑
export function honorType(data) {
  return request({
    url: '/v1/visit/honorType',
    method: 'post',
    data
  })
}


// 背调详情
export function backsteppingInfo(data) {
  return request({
    url: '/v1/visit/backsteppingInfo',
    method: 'post',
    data
  })
}

// 公司荣誉
export function visitHonor(data) {
  return request({
    url: '/v1/visit/honor',
    method: 'post',
    data
  })
}

// 公司天眼查信息
export function companydetail(data) {
  return request({
    url: '/v1/visit/companydetail',
    method: 'post',
    data
  })
}


// 背调重新生成
export function visitRefresh(data) {
  return request({
    url: '/v1/visit/refresh',
    method: 'post',
    data
  })
}


// 单公司走访记录列表
export function companyVisit(data) {
  return request({
    url: '/v1/visit/companyVisit',
    method: 'post',
    data
  })
}

// 单公司需求记录列表
export function companyDemand(data) {
  return request({
    url: '/v1/visit/companyDemand',
    method: 'post',
    data
  })
}
// 公司企业年信息
export function companyYearInfo(data) {
  return request({
    url: '/v1/visit/companyYearInfo',
    method: 'post',
    data
  })
}
// 专利检索
export function expression(data) {
  return request({
    url: '/v2/patent/search/expression',
    method: 'post',
    data
  })
}
// 单公司专利数量详情
export function companyPatentInfo(data) {
  return request({
    url: '/v1/visit/companyPatentInfo',
    method: 'post',
    data
  })
}
// 走访记录详情
export function visitDetail(data) {
  return request({
    url: '/v1/visit/visitDetail',
    method: 'post',
    data
  })
}
// 单个需求详情
export function demandInfo(data) {
  return request({
    url: '/v1/visit/demandInfoOne',
    method: 'post',
    data
  })
}
// 需求标签列表---二级类型
export function demandLabelTwo(data) {
  return request({
    url: '/v1/visit/demandLabelTwo',
    method: 'post',
    data
  })
}

// 走访记录详情
export function editVisit(data) {
  return request({
    url: '/v1/visit/editVisit',
    method: 'post',
    data
  })
}
// 走访记录新建-电话微信走访
export function editVisitAdd(data) {
  return request({
    url: '/v1/visit/editVisitAdd',
    method: 'post',
    data
  })
}
// 单个需求编辑
export function demandEdit(data) {
  return request({
    url: '/v1/visit/demandEdit',
    method: 'post',
    data
  })
}


// 单个需求编辑
export function demandCreate(data) {
  return request({
    url: '/v1/visit/demandCreate',
    method: 'post',
    data
  })
}

// 公司入库返回company_id
export function getCompany(data) {
  return request({
    url: '/v1/visit/getCompany',
    method: 'post',
    data
  })
}

// 公司入库返回company_id
export function visitRank(data) {
  return request({
    url: '/v1/visit/rank',
    method: 'post',
    data
  })
}

// 智能检索
export function intelligence(data) {
  return request({
    url: '/v2/patent/search/intelligence',
    method: 'post',
    data
  })
}

// 裁判文书表达式检索
export function cseExpression(data) {
  return request({
    url: '/v2/cse/search/expression',
    method: 'post',
    data
  })
}

// 裁判文书详细信息
export function detailCatalog(data) {
  return request({
    url: '/v2/cse/detail/catalog',
    method: 'post',
    data
  })
}

// 裁判文书PDF下载地址
export function cseDownload(data) {
  return request({
    url: '/v2/cse/download',
    method: 'post',
    data
  })
}


// 转让信息表达式检索
export function transferSearchExpression(data) {
  return request({
    url: '/v2/patent/transferSearch/expression',
    method: 'post',
    data
  })
}

// 商标许可信息表达式
export function permitSearchExpression(data) {
  return request({
    url: '/v2/patent/permitSearch/expression',
    method: 'post',
    data
  })
}


// 商标质押信息表达式
export function pledgeSearchExpression(data) {
  return request({
    url: '/v2/patent/pledgeSearch/expression',
    method: 'post',
    data
  })
}


// 荣誉类型-年份列表
export function yearList(data) {
  return request({
    url: '/v1/visit/yearList',
    method: 'post',
    data
  })
}

// 拼接表达式
export function getExpression(data) {
  return request({
    url: '/v2/search/getExpression',
    method: 'post',
    data
  })
}


// 商标表达式检索
export function searchExpression(data) {
  return request({
    url: '/v2/trademark/search/expression',
    method: 'post',
    data
  })
}

// 公司问卷列表
export function companyAnswerList(data) {
  return request({
    url: '/v1/visit/companyAnswerList',
    method: 'post',
    data
  })
}


// 问卷创建
export function createQuestion(data) {
  return request({
    url: '/v1/visit/createQuestion',
    method: 'post',
    data
  })
}

// 问卷展示
export function questionInfo(data) {
  return request({
    url: '/v1/visit/questionInfo',
    method: 'post',
    data
  })
}

// 保存问卷
export function saveQuestion(data) {
  return request({
    url: '/v1/visit/saveQuestion',
    method: 'post',
    data
  })
}


// 资质证书
export function tianyancha880(data) {
  return request({
    url: '/v3/tianyancha/tianyancha880',
    method: 'post',
    data
  })
}

// 专利分类统计
export function statistics(data) {
  return requestNew({
    url: '/v2/patent/statistics',
    method: 'post',
    data
  })
}

// 软件著作权
export function tianyancha836(data) {
  return request({
    url: '/v3/tianyancha/tianyancha836',
    method: 'post',
    data
  })
}


// 总的荣誉导入列表
export function honorcompanyList(data) {
  return request({
    url: '/v1/visit/honorcompanyList',
    method: 'post',
    data
  })
}

// 区域导入公司列表
export function companyList(data) {
  return request({
    url: '/v1/user/patCompanyList',
    method: 'post',
    data
  })
}

// 监控公司添加
export function patCompanyAdd(data) {
  return request({
    url: '/v1/user/patCompanyAdd',
    method: 'post',
    data
  })
}
// 监控公司删除
export function patCompanyDel(data) {
  return request({
    url: '/v1/user/patCompanyDel',
    method: 'post',
    data
  })
}

// 专利详情
export function catalog_handle(data) {
  return request({
    url: '/v2/patent/detail/catalog_handle',
    method: 'post',
    data
  })
}

// 月任务公司导入
export function patCompany(data) {
  return request({
    url: '/v1/import/patCompany',
    method: 'post',
    data
  })
}
// 优势企业的导入
export function honorCompany(data) {
  return request({
    url: '/v1/import/honorCompany',
    method: 'post',
    data
  })
}

// PDF下载
export function download(data) {
  return request({
    url: '/v2/patent/download',
    method: 'post',
    data
  })
}

// 奖项、优势企业导出
export function exportHonorCompany(data) {
  return request({
    url: '/v1/export/honorCompany',
    method: 'post',
    data
  })
}

// 需求标签列表
export function demandLabelList(data) {
  return request({
    url: '/v1/user/demandLabelList',
    method: 'post',
    data
  })
}
// 需求标签新增
export function demandLabelAdd(data) {
  return request({
    url: '/v1/user/demandLabelAdd',
    method: 'post',
    data
  })
}

//需求标签编辑
export function demandLabelEdit(data) {
  return request({
    url: '/v1/user/demandLabelEdit',
    method: 'post',
    data
  })
}
//需求标签删除
export function demandLabelDel(data) {
  return request({
    url: '/v1/user/demandLabelDel',
    method: 'post',
    data
  })
}

//问卷需求列表
export function questionLabelList(data) {
  return request({
    url: '/v1/user/questionLabelList',
    method: 'post',
    data
  })
}


//问卷需求添加
export function questionLabelAdd(data) {
  return request({
    url: '/v1/user/questionLabelAdd',
    method: 'post',
    data
  })
}
//问卷需求编辑
export function questionLabelEdit(data) {
  return request({
    url: '/v1/user/questionLabelEdit',
    method: 'post',
    data
  })
}
//问卷需求删除
export function questionLabelDel(data) {
  return request({
    url: '/v1/user/questionLabelDel',
    method: 'post',
    data
  })
}

//问卷关联需求id/用户id
export function association(data) {
  return request({
    url: '/v1/user/association',
    method: 'post',
    data
  })
} 

//配置列表
export function regionConfigList(data) {
  return request({
    url: '/v1/user/regionConfigList',
    method: 'post',
    data
  })
} 

//修改列表
export function regionConfig(data) {
  return request({
    url: '/v1/user/regionConfig',
    method: 'post',
    data
  })
} 

//需求关联解决人列表
export function demandAssociation(data) {
  return request({
    url: '/v1/user/demandAssociation',
    method: 'post',
    data
  })
} 

//需求管理解决人
export function associationUser(data) {
  return request({
    url: '/v1/user/associationUser',
    method: 'post',
    data
  })
} 

//问卷所属领域产业列表
export function questionOtherList(data) {
  return request({
    url: '/v1/user/questionOtherList',
    method: 'post',
    data
  })
} 

//问卷所属领域产业添加
export function questionOtherAdd(data) {
  return request({
    url: '/v1/user/questionOtherAdd',
    method: 'post',
    data
  })
} 


//问卷所属领域产业编辑
export function questionOtherEdit(data) {
  return request({
    url: '/v1/user/questionOtherEdit',
    method: 'post',
    data
  })
} 


//问卷所属领域产业删除
export function questionOtherDel(data) {
  return request({
    url: '/v1/user/questionOtherDel',
    method: 'post',
    data
  })
} 

//街道列表
export function streetList(data) {
  return request({
    url: '/v1/user/streetList',
    method: 'post',
    data
  })
} 

//街道新增
export function streetAdd(data) {
  return request({
    url: '/v1/user/streetAdd',
    method: 'post',
    data
  })
} 

//街道修改
export function streetEdit(data) {
  return request({
    url: '/v1/user/streetEdit',
    method: 'post',
    data
  })
} 

//街道删除
export function streetDel(data) {
  return request({
    url: '/v1/user/streetDel',
    method: 'post',
    data
  })
} 




